/*============================================================================*/
/*                   CONTINENTAL AUTOMOTIVE SYSTEMS                           */
/*============================================================================*/
/*                        OBJECT SPECIFICATION                                */
/*============================================================================*
* name:            HAL_led.h
* version:         1.0
* created_by:      Continental
* date_created:    June 7 2013
*=============================================================================*/
/* DESCRIPTION : Header file for abstraction layer for LED                    */
/*============================================================================*/
/* FUNCTION COMMENT : Header file abstraction layer for LED                   */
/*                                                                            */
/*============================================================================*/
/*                               OBJECT HISTORY                               */
/*============================================================================*/
/*  REVISION |   DATE      |                               |      AUTHOR      */
/*----------------------------------------------------------------------------*/
/*  1.0      | 07/jun/2013 |                               | Continental      */
/* Initial version for the Lab 2 using Freescale Bolero micro.                */
/*============================================================================*/

#ifndef HAL_LED_H                                /* To avoid double inclusion */
#define HAL_LED_H

/* Register definitions for selected microcontroller */
#include "MCU_derivative.h"

/*-- Defines -----------------------------------------------------------------*/

#define LED1      					68
#define LED2       					69
#define LED3       					70
#define LED4        				71

#define LED1_PWM_CH                 20
#define LED2_PWM_CH                 21
#define LED3_PWM_CH                 22
#define LED4_PWM_CH                 23

#define LED_ON              		0
#define LED_OFF						1


/*-- Functions ---------------------------------------------------------------*/

void HAL_led_Init_channel(T_UBYTE channel, T_UBYTE input_output, T_UBYTE Open_drain);

void HAL_led_Init(void);

void HAL_led_TurnOn(T_UBYTE led);
void HAL_led_TurnOff(T_UBYTE led);


#endif